package org.dromara.hrp.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.hrp.domain.HrpPartner;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 合作伙伴视图对象 hrp_partner
 *
 * @author wenrui
 * @date 2024-03-15
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HrpPartner.class)
public class HrpPartnerVo implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * id
   */
  @ExcelProperty(value = "id")
  private Long id;

  /**
   * 上级
   */
  @ExcelProperty(value = "上级")
  private Long parentId;

  /**
   * 名称
   */
  @ExcelProperty(value = "名称")
  private String name;

  /**
   * 编码
   */
  @ExcelProperty(value = "编码")
  private String code;

  /**
   * 性别
   */
  @ExcelProperty(value = "性别", converter = ExcelDictConvert.class)
  @ExcelDictFormat(dictType = "sys_user_sex")
  private String sex;

  /**
   * 手机号
   */
  @ExcelProperty(value = "手机号")
  private String mobile;

  /**
   * 是否启用
   */
  @ExcelProperty(value = "是否启用", converter = ExcelDictConvert.class)
  @ExcelDictFormat(dictType = "sys_yes_no")
  private String status;

  /**
   * 固定电话
   */
  @ExcelProperty(value = "固定电话")
  private String telephone;

  /**
   * 邮箱
   */
  @ExcelProperty(value = "邮箱")
  private String email;

  /**
   * 标识
   */
  @ExcelProperty(value = "标识")
  private String logo;

  /**
   * 网站地址
   */
  @ExcelProperty(value = "网站地址")
  private String website;

  /**
   * 身份证号
   */
  @ExcelProperty(value = "身份证号")
  private String idCard;

  /**
   * 生日
   */
  @ExcelProperty(value = "生日")
  private Date birthday;

  /**
   * 评分
   */
  @ExcelProperty(value = "评分")
  private Long score;

  /**
   * 地址
   */
  @ExcelProperty(value = "地址")
  private String address;

  @ExcelProperty(value = "是否客户", converter = ExcelDictConvert.class)
  @ExcelDictFormat(dictType = "sys_yes_no")
  private Boolean isCustomer;

  @ExcelProperty(value = "是否供应商", converter = ExcelDictConvert.class)
  @ExcelDictFormat(dictType = "sys_yes_no")
  private Boolean isSupplier;

  @ExcelProperty(value = "生产商否", converter = ExcelDictConvert.class)
  @ExcelDictFormat(dictType = "sys_yes_no")
  private Boolean isManufacturer;
  /**
   * 图片
   */
  @ExcelProperty(value = "图片")
  private String picture;

  /**
   * 备注
   */
  @ExcelProperty(value = "备注")
  private String remark;


}
